import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:database',
      order: 20,
      title: '数据中心',
      // authority: ['circleManager'],
    },
    name: 'DataCenter',
    path: '/data-center',
    children: [
      {
        name: 'DataCenterDict',
        path: '/data-center/dict',
        component: () => import('#/views/data-center/dict/index.vue'),
        meta: {
          icon: 'lucide:book',
          title: '字典管理',
        },
      },
      {
        name: 'DataCenterAttachment',
        path: '/data-center/attachment',
        component: () => import('#/views/data-center/attachment/index.vue'),
        meta: {
          icon: 'lucide:folders',
          title: '附件管理',
        },
      },
      {
        name: 'DataCenterProvinces',
        path: '/data-center/provinces',
        component: () => import('#/views/data-center/provinces/index.vue'),
        meta: {
          icon: 'lucide:map-pin',
          title: '地区编码',
        },
      },
      {
        name: 'DataCenterAgreement',
        path: '/data-center/agreement',
        component: () => import('#/views/data-center/agreement/index.vue'),
        meta: {
          icon: 'lucide:file-pen-line',
          title: '协议管理',
        },
      },
      {
        name: 'DataCenterLog',
        path: '/data-center/log',
        component: () => import('#/views/data-center/log/index.vue'),
        meta: {
          icon: 'lucide:file-text',
          title: '日志管理',
        },
      },
      {
        name: 'DataCenterClearData',
        path: '/data-center/cleardata',
        component: () => import('#/views/data-center/cleardata/index.vue'),
        meta: {
          icon: 'lucide:trash-2',
          title: '清除数据',
        },
      },
    ],
  },
];

export default routes;
